package com.ruoyi.system.service;


import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.Post;
import com.dtflys.forest.annotation.Query;
import com.ruoyi.system.domain.Forest.AuthToken;

@BaseRequest(
        baseURL = "${domain}",     // 默认域名
        contentType = "application/x-www-form-urlencoded",
        headers = {
                "Content-Type: application/x-www-form-urlencoded",
                "Authorization: Basic b3BlbmNsaWVudDpvcGVuY2xpZW50"// 默认请求头
        }
)
public interface QueryTokenClient {

    @Post("/auth/oauth/token?grant_type=client_credentials&scope=open")
    AuthToken authToken();
}
